<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>编辑评论</title>
</head>
<body>
    <h1>编辑评论</h1>
    <form action="#" th:action="@{/comments/update/??}" method="post">
        <div>
            <label for="author">作者:</label>
            <input type="text" id="author" name="author" th:value="${comment.author}" required>
        </div>
        <div>
            <label for="content">内容:</label>
            <textarea id="content" name="content" rows="4" th:text="${comment.content}" required></textarea>
        </div>
        <button type="submit">更新评论</button>
    </form>
    <a th:href="@{/comments/article/{id}(id=${comment.id})}">取消</a>
</body>
</html>